package com.mewp.permissions.system.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mewp.permissions.model.po.SysUser;
import com.mewp.permissions.model.vo.LoginVo;
import com.mewp.permissions.model.vo.SysUserQueryVo;

import java.util.Map;

/**
 * @author mewp
 * @description 针对表【sys_user(用户表)】的数据库操作Service
 * @createDate 2023-07-28 10:26:45
 */
public interface SysUserService extends IService<SysUser> {
    Page<SysUser> selectPage(Integer page, Integer size, SysUserQueryVo adminQueryVo);

    boolean updateStatus(Long id, Integer status);

    Map<String, Object> login(LoginVo loginVo);

    SysUser getByUserName(String userName);

    Map<String, Object> getUserInfo(String token);
}
